package com.lkpstudy.rbac.controller;

import com.lkpstudy.rbac.base.BaseController;
import com.lkpstudy.rbac.entity.Dict;
import com.lkpstudy.rbac.entity.DictDetail;
import com.lkpstudy.rbac.service.DictDetailService;
import com.lkpstudy.rbac.service.DictService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author likaiping
 * @editTime 2024/4/17 20:31
 */

@RestController
@RequestMapping("/dict/detail")
public class DictDetailController extends BaseController<DictDetailService, DictDetail> {
    @GetMapping("/name/{dictname}")
    public List<DictDetail> findDictDetails(@PathVariable("dictname") String dictname) {
        return baseService.findDictDetails(dictname);
    }
}
